package com.system.manager.modules.projectLibrary.service;

import com.system.manager.modules.authorized.entity.Subject;
import com.system.manager.modules.projectLibrary.entity.Project;
import com.system.manager.modules.projectLibrary.entity.ProjectChange;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jisf
 * @since 2021-11-10
 */
public interface IProjectChangeService extends IService<ProjectChange> {

    /**
     * TODO 插入项目变更
     *
     * @param projectChange
     * @param project
     */
    void insertProjectChange(ProjectChange projectChange, Project project);

    /**
     * TODO 审核项目变更
     *
     * @param id
     */
    void updateProjectChange(Integer id);

    /**
     * TODO 查询项目变更
     *
     * @param subject
     * @return
     */
    List<ProjectChange> selectProjectChange(Subject subject);

    /**
     * TODO 删除变更记录
     *
     * @param day
     * @param subject
     */
    void deleteProjectChange(Integer day,Subject subject);
}
